﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class InventoryReducingRecordConfig : EntityTypeConfigBase<InventoryReducingRecord>
	{
		public InventoryReducingRecordConfig()
		{
			Property(irr => irr.HospitalId)
				.IsRequired()
				.HasMaxLength(32);

			Property(irr => irr.OrderNumber)
				.IsRequired()
				.HasMaxLength(32);

			Property(irr => irr.ProductId)
				.IsRequired()
				.HasMaxLength(32);

			Property(irr => irr.InventoryNumber)
				.IsRequired()
				.HasMaxLength(32);
		}
	}
}
